package com.emar.spring.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emar.spring.dao.SystemDao;
import com.emar.spring.dto.ParamsDTO;
import com.emar.spring.model.SystemEntity;

@Service
public class SystemService {

	@Autowired
	private SystemDao systemDao;
	
	public int getSystemCount(ParamsDTO dto, String groupBy, int pageNumber,
			int pageSize){
		return systemDao.getSystemCount(dto, groupBy, pageNumber, pageSize);
	}
	
	public List<ParamsDTO> getParamsDTOPageList(ParamsDTO pe, String groupBy,
			int pageNumber, int pageSize) {
		return systemDao.getParamsDTOPageList(pe, groupBy, pageNumber, pageSize);
	}
	
	public List<ParamsDTO> getSingleSystemSecuList(ParamsDTO pe,
			int pageNumber, int pageSize) {
		return systemDao.getSingleSystemSecuList(pe, pageNumber, pageSize);
	}
	
	public List<ParamsDTO> getAllSystemSecuList(ParamsDTO pe, String groupBy,
			int pageNumber, int pageSize) {
		return systemDao.getAllSystemSecuList(pe, groupBy, pageNumber, pageSize);
	}
}
